package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import lombok.Data;

//会员客人表
@Data
@TableName("mz_member")
public class Member extends BaseEntity {

    @TableId(type = IdType.ASSIGN_UUID)
    private Long id;

    //用户昵称或网络名称
    private String nickname;

    //微信登录sessionkey
    private String sessionKey;

    //微信登录openid
    private String openId;

    //微信unionid
    private String unionId;

    //用户头像图片
    private String avatar;

    //姓名
    private String name;

    //手机号
    private String mobile;

    //生日
    private String birthday;

    //性别 0未知 1男 2女
    private Integer sex;

    //身高 厘米
    private Integer height;

    //体重 公斤
    private Integer weight;

    //状态 0可用 1禁用 2注销
    private Integer status;

    //上次商家ID
    private Integer lastMerchantId;

    //上次商家名称
    private String lastMerchantName;

    //订单数
    private Integer orderCount;

    //在用订单号
    private Long orderId;

    //订单卡次数 1 3 6 10
    private Integer count;

    //剩余次数
    private Integer remain;


}
